package com.itheima.d_case;


//1.根据需求定义的菜品JavaBean类
public class Dish {

    //2.有属性：名称、菜系、价格！
    private String name;
    private String type;
    private double price;

    //3.生成无参、有参构造
    public Dish() {
    }

    public Dish(String name, String type, double price) {
        this.name = name;
        this.type = type;
        this.price = price;
    }

    //4.生成 getter and setter 方法
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }
}
